chore(CHORE-001): cible Makefile distclean#4
Merged
Conversation
- distclean : git reset --hard + git clean -fdx, en excluant .claude/, avec aperçu et confirmation interactive avant l'action destructive. - .gitignore : ignorer .claude/settings.local.json. Closes #3
There was a problem hiding this comment.
Pull request overview
Cette PR ajoute une cible make distclean au Makefile pour réinitialiser le dépôt à l’état du dernier commit, avec un aperçu (dry-run) et une confirmation interactive, tout en préservant le dossier .claude/ (réglages locaux).
Changes:
- Ajout de la cible
distclean(aperçu viagit clean -ndx, puis confirmation, puisgit reset --hard+git clean -fdxen excluant.claude/). - Déclaration de
distcleandans.PHONY. - Ajout de
.claude/settings.local.jsonau.gitignore.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Makefile | Ajoute distclean avec aperçu + confirmation, et exécute reset/clean en excluant .claude/. |
| .gitignore | Ignore .claude/settings.local.json pour conserver les réglages locaux hors versionnement. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @echo "⚠ distclean va :" | ||
| @echo " - annuler toutes tes modifications locales (git reset --hard)" | ||
| @echo " - supprimer les fichiers non suivis/ignorés ci-dessous (sauf .claude/) :" | ||
| @git clean -ndx -e .claude | sed 's/^/ /' || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3
Ce que fait cette PR
Ajoute la cible
make distclean: remet le dépôt à l'état du dernier commit.git reset --hard HEAD(annule les modifs locales suivies)git clean -fdx -e .claude(supprime non-suivis/ignorés, sauf.claude/).gitignore: ignore.claude/settings.local.json.Vérifié
n) → sortie propre, rien touché.y) → fichier non suivi supprimé, modif d'un fichier suivi annulée,build/nettoyé,.claude/préservé.make clean(build/ seulement) reste inchangé.